package com.leilei.feign;

import com.leilei.entity.Location;
import com.leilei.entity.Result;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author lei
 * @create 2022-04-12 16:17
 * @desc 熔断配置
 **/
@Component
public class LocationCenterFallback implements LocationCenterFeign {

    @Override
    public Result<Location> getLastLocation(Integer vehicleId) {
        return Result.fail();
    }

    @Override
    public Result<Map<String, String>> getHeader() {
        return Result.fail();
    }

    @Override
    public Result<List<Location>> dateLocation(Integer vehicleId) {
        return Result.fail();
    }
}
